package org.screenshare.rtmp.android.nginx;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.widget.ArrayAdapter;
import android.widget.ListView;

import org.screenshare.rtmp.android.nginx.fragment.NginxManagerFragment;
import org.screenshare.rtmp.android.nginx.fragment.WebViewFragment;

import java.util.ArrayList;
import java.util.List;

/**
 * Nginx Application Main Activity.
 */
public class MainActivity extends Activity {






	@Override
	protected void onCreate(final Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);


        // initialize drawer
        
        NginxManagerFragment managerFragment = new NginxManagerFragment();
        Bundle args = new Bundle();
        args.putString(Intent.EXTRA_TITLE, "Nginx Manager");
        managerFragment.setArguments(args);

        WebViewFragment webviewFragment = new WebViewFragment();
        args = new Bundle();
        args.putString(Intent.EXTRA_TITLE, "Web Browser");
        webviewFragment.setArguments(args);

        List<Fragment> fragments = new ArrayList<Fragment>();
        fragments.add(managerFragment);
        fragments.add(webviewFragment);
        // init view pager
		setContentView(R.layout.activity_main);
		ListView idMyList= (ListView) findViewById(R.id.idMyList);
		List<String> showItem=new ArrayList<>();
		idMyList.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,showItem));

	}
    @Override
    protected void onPostCreate(final Bundle savedInstanceState) {
        super.onPostCreate(savedInstanceState);

    }
}
